<template>
	<view class="wrap">
		<view class="shenqing" @click="tojubao">
			我要举报
		</view>
		<view class="items" v-for="(item,index) in dataList" :key="index">
			
			<!-- <image :src="item.coverImage" mode=""></image> -->
			<view class="item-right">
				<view class="item-name">
					被举报人：{{item.reportedId}}
				</view>
				<view class="item-city" style="margin-top: 10rpx;">
					内容：{{item.reportedContent}}
				</view>
				
			</view>
		</view>
	</view>
</template>
<script>
	import { list,activitieslist,reportlist } from "@/api/list.js"
export default {
	data() {
		return {
			dataList:[],
			gridData : [
				{
					text: '寻宠',
					icon: '/static/icon/2message.png',
					path: '/pages/fast/fast',
				},
				{
					text: '送养',
					icon: '/static/icon/2book.png',
					path: '/pages/tong/tong',
				},
				{
					text: '活动',
					icon: '/static/icon/2favour.png',
					path: '/pages/tabBar/list/list?type=1',
				},{
					text: '配对',
					icon: '/static/icon/2bar_chart.png',
					path: '/pages/tabBar/list/list?type=2',
				}
			]
			}
		},
		onShow() {
			this.getList();
		},
		methods: {
			tojubao(){
				uni.navigateTo({
					url: '/pages/release/jubao'
				})
			},
			getList(){
				var from ={
					reportedState:2
				}
				
				reportlist().then(result => {
					if (result.data.code == 200) {
						// this.carouselListUrl = [];
						this.dataList=result.data.rows
					} else {
						uni.showToast({
							title: data.msg,
							icon: 'none',
							duration: 2000
						});
					}
				})
			},
			change(e) {
				// e.detail.index
				
				console.log(e.detail.index)
				if(e.detail.index==0){
					uni.navigateTo({
						url: '/pages/index/xunchong?releaseType='+2
					})
				}
				if(e.detail.index==1){
					uni.navigateTo({
						url: '/pages/index/xunchong?releaseType='+1
					})
				}
				if(e.detail.index==3){
					uni.navigateTo({
						url: '/pages/index/xunchong?releaseType='+3
					})
				}
			},
			openView(uuid) {
				uni.navigateTo({
					url: '/pages/index/huodetails?uuid='+uuid
				})
			}
		}
	}
</script>

<style lang="scss">
	.shenqing{
		margin: 20rpx auto;
		background-color: #FF8297;
		color: #fff;
		border-radius: 50rpx;
		width: 300rpx;
		height: 100rpx;
		text-align: center;
		line-height: 100rpx;
	}
	.head {
		margin: 20upx;
		height: 300upx;
		background: #f5f5f5;
	}

	.banner {
		width: 710upx;
		height: 300upx;
		border-radius: 20upx;
	}.warp {
		width: 750upx;
		height: 200upx;
	}
	
	.text {
		font-size: 30upx;
		font-weight: 300;
		margin-top: 5px;
	}
	.grid-item-box {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 15px 0;
		height: 280upx;
	}
	.grid-item-icon {
		width: 90upx;
		height: 90upx;
	}
	.items {
		display: flex;
		// width: 710upx;
		height: 130upx;
		background: #f8f8f8;
		margin: 20upx;
		padding: 10upx 0upx;
		border-radius: 20upx;
	}
	.items image {
		margin: 10upx 0upx 0upx 10upx;
		width: 160upx;
		height: 160upx;
		border-radius: 50%;
	}
	.item-right {
		margin-left: 20upx;
		line-height: 40upx;
		width: 500upx;
	}
	.item-name {
		font-size: 30upx;
		font-weight: 700;
	}
	.item-name span {
		width: 100upx;
		font-weight: 300;
		font-size: 26upx;
	}
	.item-city {
		font-size: 26upx;
		font-weight: 300;
		color: #909399;
	}
	.item-major {
		font-size: 26upx;
		font-weight: 300;
		color: #909399;
	}
	.item-num {
		font-size: 26upx;
		font-weight: 300;
		color: #909399;
	}
	.item-price {
		font-size: 26upx;
		display: flex;
		color: #409EFF;
		justify-content: space-between;
	}
</style>
